<?php
namespace Home\Controller;
use Think\Controller;
use Todo\Util\Mobile;

class IndexController extends Controller {
    public function index(){
        $mobile = new Mobile();
        if($mobile->isMobile() || $mobile->isTablet() ){
            redirect('/mobile');
        }else{
            redirect('/space');
        }
    }
}